<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:h="http://java.sun.com/jsf/html">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <h:form>
        <h:panelGrid columns="2">
            <h:outputLabel for="srcCity">Source City</h:outputLabel>
            <h:inputText id="srcCity" value="#{distanceBean.srcCity}"/>
            <h:outputLabel for="destCity">Destination City</h:outputLabel>
            <h:inputText id="destCity" value="#{distanceBean.destCity}"/>
            <h:outputLabel>Distance</h:outputLabel>
            <h:outputText value="#{distanceBean.distance}"/>
            <h:commandButton value="Find" action="#{distanceBean.find}"/>
        </h:panelGrid>
    </h:form>
    </h:body>
</html>

